if (!jsx3.lang.Class.forName("ux.cdb.admin.system.user.UserPsw")) {
/**
 * Define the <code>tibco.spm.design.rule.builder.Builder</code> class.
 * This class inherit from <code>jsx3.gui.Dialog<code> GUI class.
 */
jsx3.Class.defineClass(
                "ux.cdb.admin.system.user.UserPsw",
                jsx3.gui.Dialog,
                null,
                function (objRoot) {
                        /**
                         * This method will be called after UI file has deserialized.
                         */
                        objRoot.prototype.onSubmit = function() {
                            var oldpsw=this.getDescendantOfName("oldpswtxt").getValue();
                            var newpsw=this.getDescendantOfName("newpswtxt").getValue();
                            var renewpsw=this.getDescendantOfName("renewpswtxt").getValue();
                            var txt;
                            if(oldpsw==""){
                                  txt=ux.megatron.Main.getServer().getDynamicProperty("@cdb@System@UserManage@UserPsw@orpsw");
                            }else if(newpsw==""){
                                  txt=ux.megatron.Main.getServer().getDynamicProperty("@cdb@System@UserManage@UserPsw@newpsw");
                            }
                            else if(newpsw!=renewpsw){
                                  txt=ux.megatron.Main.getServer().getDynamicProperty("@cdb@System@UserManage@UserPsw@newpsw@unequal");
                            }else if(newpsw==renewpsw){
                                txt="";
                                try{
                                   ux.megatron.util.Dwr.callDwr("UserMgrUCC", "saveModifyPassword", [oldpsw,newpsw,renewpsw], this, function(dwrobj){
                                      if(dwrobj){
                                          if(dwrobj.res.flag==1){
                                                    this.getDescendantOfName("msgtxt").setText("",true);
                                                    this.doClose();
                                                     return;
                                          }else{
                                                txt=ux.megatron.Main.getServer().getDynamicProperty("@cdb@System@UserManage@UserPsw@exception");
                                          }
                                      }
                                   }, "UserMgrUCC");
                                }catch(ex){
                                    jsx3.log(ex);
                                    this.getDescendantOfName("msgtxt").setText("",true);
                                }
                            }
                            this.getDescendantOfName("msgtxt").setText(txt,true);

                        }
                        objRoot.prototype.onReset=function(){
                               var oldpsw=this.getDescendantOfName("oldpswtxt");
                               var newpsw=this.getDescendantOfName("newpswtxt");
                               var renewpsw=this.getDescendantOfName("renewpswtxt");
                               oldpsw.setValue("",true);
                               newpsw.setValue("",true);
                               renewpsw.setValue("",true);
                               this.getDescendantOfName("msgtxt").setText("",true);
                        }
                });
}